package com.icexxx.icemock.util;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import cn.hutool.db.handler.RsHandler;

public class StringListHandler implements RsHandler<List<String>> {
	private static final long serialVersionUID = 7761140488503549887L;

	@Override
	public List<String> handle(ResultSet rs) throws SQLException {
		List<String>result=new ArrayList<String>();
		while(rs.next()) {
			result.add(rs.getString(1));
		}
		return result;
	}

}
